# For k2 installation, please refer to https://github.com/k2-fsa/k2/
python -c "import k2; print(k2.__file__)"
python -c "import torch; import _k2; print(_k2.__file__)"

# Prepare necessary icefall scripts
#if [ ! -d tools/k2/icefall ]; then
#    git clone --depth 1 https://github.com/k2-fsa/icefall.git tools/k2/icefall
#fi
# pip install -r tools/k2/icefall/requirements.txt
#export PYTHONPATH=`pwd`/tools/k2/icefall:`pwd`/tools/k2/icefall/egs/aishell/ASR/local:$PYTHONPATH
tgt_dir='./data_res'
# 8.3 Compile HLG
python /home/work_nfs8/xlgeng/new_workspace/wenet_gxl_aishell/examples/aishell/do_goutu/tools/k2/icefall/egs/aishell/ASR/local/compile_hlg.py --lang-dir $tgt_dir
echo "Compile decoding graph HLG.pt succeeded"
